//
//  PhysicalRecordHeadView.m
//  HarmonizePub
//
//  Created by rzhy on 2017/1/22.
//  Copyright © 2017年 Zy. All rights reserved.
//

#import "PhysicalRecordHeadView.h"

@interface PhysicalRecordHeadView ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation PhysicalRecordHeadView

+ (instancetype)headView {
    return [[NSBundle mainBundle] loadNibNamed:@"PhysicalRecordHeadView" owner:nil options:nil].lastObject;
}

- (void)setDataDictionary:(NSDictionary *)dataDict {
    NSString *image = dataDict[@"image"];
    NSString *text = dataDict[@"text"];
    self.imageView.image = [UIImage imageNamed:image];
    self.titleLabel.text = text;
}

@end
